#include <linux/sched.h>
#include <sys/types.h>
#include <stdio.h>
#include <unistd.h>
#include <wait.h>

int main(){
	pid_t pid = fork();
	if(pid < 0) {
		fprintf(stderr, "Fork Failed");
	}
	else if(pid == 0) {
		execlp("/bin/ls","ls",NULL);
	}
	else {
		wait(NULL);
		printf("Child Complete\n");
	}
	return 0;
}

